package com.backend.entity;

import com.baomidou.mybatisplus.annotation.*;

import java.io.Serializable;
import java.util.Date;
import lombok.Data;

/**
 * 回复表
 * @TableName reply
 */
@TableName(value ="reply")
@Data
public class Reply implements Serializable {
    /**
     * 主键
     */
    @TableId(value = "id", type = IdType.AUTO)
    private Long id;

    /**
     * 父评论ID
     */
    @TableField(value = "commentID")
    private Long commentID;

    /**
     * me
     */
    @TableField(value = "fromUserID")
    private Long fromUserID;

    /**
     * me
     */
    @TableField(value = "fromUserName")
    private String fromUserName;

    /**
     * me
     */
    @TableField(value = "fromUserAvatar")
    private String fromUserAvatar;

    /**
     * ta
     */
    @TableField(value = "toUserID")
    private Integer toUserID;

    /**
     * ta
     */
    @TableField(value = "toUserName")
    private String toUserName;

    /**
     * ta
     */
    @TableField(value = "toUserAvatar")
    private String toUserAvatar;

    /**
     * 内容
     */
    @TableField(value = "content")
    private String content;

    /**
     * 
     */
    @TableField(value = "createTime")
    private Date createTime;

    /**
     * 
     */
    @TableField(value = "updateTime")
    private Date updateTime;

    /**
     * 
     */
    @TableField(value = "isDelete")
    @TableLogic
    private Byte isDelete;

    @TableField(exist = false)
    private static final long serialVersionUID = 1L;
}